<?php

class SuspiciusForm extends CFormModel {

    public $informantname;
    public $emailcount;
    public $suspeciousemail;
    public $senddate;
    public $suspeciousbody;
    public $verifyCode;

    public function rules() {
        return array(
            array('suspeciousemail, suspeciousbody', 'required'),
            array('suspeciousemail', 'email'),
            array('verifyCode', 'captcha', 'allowEmpty' => !CCaptcha::checkRequirements()),
        );
    }

    public function attributeLabels() {
        return array(
            'informantname' => 'Informant Name',
            'emailcount' => 'How many Email You have got',
            'suspeciousemail' => 'Sender email id of Suspicious Email',
            'senddate' => 'Date',
            'suspeciousbody' => 'Contents of Suspicious Email',
            'verifyCode' => 'Turing',
        );
    }

}